//
//  F_UserInfoVC.swift
//  letuofu
//
//  Created by dooland2 on 2020/3/7.
//  Copyright © 2020 WH-JS. All rights reserved.
//

import UIKit

class F_UserInfoVC: BaseViewControllerWithHeader {
    
    var financeInfo = [String:Any?]()

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        setupUI()
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}

// MARK: UI
extension F_UserInfoVC {
    func setupUI() {
        safeView.backgroundColor = .xF2F2F2
        headView.backgroundColor = .white
        headTitle.text = "实名认证"
        
        var bgview = safeView.drawView { (make) in
            make.top.equalTo(headView.snp.bottom).offset(10)
            make.left.right.equalToSuperview()
            make.height.equalTo(51.5)
        }
        bgview.backgroundColor = .white
        bgview.drawLabel(text: "姓名", fontSize: 12, fontWeight: .regular, textColor: .x333333) { (make) in
            make.centerY.equalToSuperview()
            make.left.equalToSuperview().offset(10)
            make.right.equalToSuperview().offset(-80)
        }
        
        bgview.drawLabel(text: financeInfo.getString("name"), fontSize: 12, fontWeight: .regular, textColor: .x333333) { (make) in
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().offset(-10)
        }
        
        //画横线
        var line = bgview.drawView { (make) in
            make.left.equalToSuperview().offset(10)
            make.right.equalToSuperview().offset(-10)
            make.bottom.equalToSuperview()
            make.height.equalTo(1)
        }
        line.backgroundColor = .xF2F2F2
        
                
                bgview = safeView.drawView { (make) in
                    make.top.equalTo(bgview.snp.bottom)
                    make.left.right.equalToSuperview()
                    make.height.equalTo(51.5)
                }
                bgview.backgroundColor = .white
                bgview.drawLabel(text: "身份证号码", fontSize: 12, fontWeight: .regular, textColor: .x333333) { (make) in
                    make.centerY.equalToSuperview()
                    make.left.equalToSuperview().offset(10)
                    make.right.equalToSuperview().offset(-80)
                }
                

        bgview.drawLabel(text: financeInfo.getString("idCardNo"), fontSize: 12, fontWeight: .regular, textColor: .x333333) { (make) in
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().offset(-10)
        }
                
                //画横线
                line = bgview.drawView { (make) in
                    make.left.equalToSuperview().offset(10)
                    make.right.equalToSuperview().offset(-10)
                    make.bottom.equalToSuperview()
                    make.height.equalTo(1)
                }
                line.backgroundColor = .xF2F2F2
        

        bgview = safeView.drawView { (make) in
                    make.top.equalTo(bgview.snp.bottom)
                    make.left.right.equalToSuperview()
                    make.height.equalTo(51.5)
                }
                bgview.backgroundColor = .white
                bgview.drawLabel(text: "验证结果", fontSize: 12, fontWeight: .regular, textColor: .x333333) { (make) in
                    make.centerY.equalToSuperview()
                    make.left.equalToSuperview().offset(10)
                    make.right.equalToSuperview().offset(-80)
                }
                
                bgview.drawLabel(text: "您已实名制认证", fontSize: 12, fontWeight: .regular, textColor: .x333333) { (make) in
                    make.centerY.equalToSuperview()
                    make.right.equalToSuperview().offset(-10)
                }
                
                //画横线
                line = bgview.drawView { (make) in
                    make.left.equalToSuperview().offset(10)
                    make.right.equalToSuperview().offset(-10)
                    make.bottom.equalToSuperview()
                    make.height.equalTo(1)
                }
                line.backgroundColor = .xF2F2F2
    }
}
